<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
                template="/WEB-INF/templates/mainLayout.xhtml">

    <ui:define name="mainContent">

        <f:event type="preRenderView" listener="#{folderBean.init}" />

        <div id="folderTopContent" class="folder-content" style="margin: 20px;">

            <p:dataTable value="#{folderBean.folders}" var="f">
                <p:column headerText="IDNP">
                    #{f.IDNP}
                </p:column>

                <p:column headerText="Actions">
                    <p:commandLink value="View" action="#{folderBean.displayFolderInfo(f.id)}" />
                </p:column>
            </p:dataTable>

        </div>
    </ui:define>
</ui:composition>